package mwm;

public class ClaseA {
    private Integer at1;
    private Integer at2;
    
    public ClaseA() {
        at1=0;
        at2=0;
    }
    
    public void setAt1(Integer at1){
        this.at1=at1;
    }
    
    public void setAt2(Integer at2){
        this.at2=at2;
    }
    
    public Integer getAt1(){
        return at1;
    }
    
    public Integer getAt2(){
        return at2;
    }

    @Override
    public boolean equals(Object object) {
        if (this == object) {
            return true;
        }
        if (!(object instanceof ClaseA)) {
            return false;
        }
        final ClaseA other = (ClaseA) object;
        if (!(at1 == null ? other.at1 == null : at1.equals(other.at1))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        final int PRIME = 37;
        int result = 1;
        result = PRIME * result + ((at1 == null) ? 0 : at1.hashCode());
        return result;
    }
    
    public String toString(){
        return("Atributo1="+at1.toString()+"\nAtributo2=" + at2.toString());
    }
}
